package com.ruiysoft.entity.logistics.kuaidi100;

import com.alibaba.fastjson.JSON;
import com.ruiysoft.entity.logistics.ILogisticsConfig;

public class Kuaidi100Config implements ILogisticsConfig {
    private String key;
    private String customer;
    private String secret;
    //private String callbackURL;//不依赖此处，但需要修改为可以配置

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    /*public String getCallbackURL() {
        return callbackURL;
    }

    public void setCallbackURL(String callbackURL) {
        this.callbackURL = callbackURL;
    }*/

    /**
     *
     * @param kuaidi100Config
     * @return
     */
    public final static String toJSONString(Kuaidi100Config kuaidi100Config){
        return JSON.toJSONString(kuaidi100Config);
    }

    /**
     *
     * @param json
     * @return
     */
    public final static Kuaidi100Config parseObject(String json){
        return JSON.parseObject(json,Kuaidi100Config.class);
    }

    /**
     * 加密解密
     * @param s
     * @return
     */
    public String encode(String s){
        return s;
    }

    /**
     * 加密解密
     * @param s
     * @return
     */
    public String decode(String s){
        return s;
    }
}
